package com.lz.frame.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lz.frame.common.CommonEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@TableName("logger")
public class Logger extends CommonEntity<String> {
    private String traceId;
    private String requestPath;
    private String requestMethod;
    private String requestParam;
    private String response;
    private String ip;
    private String userName;

    public Logger() {
    }

    public Logger(String traceId, String requestPath, String requestMethod, String requestParam, String response, String ip, String userName) {
        this.traceId = traceId;
        this.requestPath = requestPath;
        this.requestMethod = requestMethod;
        this.requestParam = requestParam;
        this.response = response;
        this.ip = ip;
        this.userName = userName;
    }

    /**
     * 获取
     * @return traceId
     */
    public String getTraceId() {
        return traceId;
    }

    /**
     * 设置
     * @param traceId
     */
    public void setTraceId(String traceId) {
        this.traceId = traceId;
    }

    /**
     * 获取
     * @return requestPath
     */
    public String getRequestPath() {
        return requestPath;
    }

    /**
     * 设置
     * @param requestPath
     */
    public void setRequestPath(String requestPath) {
        this.requestPath = requestPath;
    }

    /**
     * 获取
     * @return requestMethod
     */
    public String getRequestMethod() {
        return requestMethod;
    }

    /**
     * 设置
     * @param requestMethod
     */
    public void setRequestMethod(String requestMethod) {
        this.requestMethod = requestMethod;
    }

    /**
     * 获取
     * @return requestParam
     */
    public String getRequestParam() {
        return requestParam;
    }

    /**
     * 设置
     * @param requestParam
     */
    public void setRequestParam(String requestParam) {
        this.requestParam = requestParam;
    }

    /**
     * 获取
     * @return response
     */
    public String getResponse() {
        return response;
    }

    /**
     * 设置
     * @param response
     */
    public void setResponse(String response) {
        this.response = response;
    }

    /**
     * 获取
     * @return ip
     */
    public String getIp() {
        return ip;
    }

    /**
     * 设置
     * @param ip
     */
    public void setIp(String ip) {
        this.ip = ip;
    }

    /**
     * 获取
     * @return userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 设置
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String toString() {
        return "Logger{traceId = " + traceId + ", requestPath = " + requestPath + ", requestMethod = " + requestMethod + ", requestParam = " + requestParam + ", response = " + response + ", ip = " + ip + ", userName = " + userName + "}";
    }
}